package com.helloblog.web.servlet;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.helloblog.utils.EncodeHandler;

/**
 * Servlet implementation class QRCodeServlet
 */
public class QRCodeServlet extends HttpServlet {
	private static final long serialVersionUID = 1L;
       
    /**
     * @see HttpServlet#HttpServlet()
     */
    public QRCodeServlet() {
        super();
        // TODO Auto-generated constructor stub
    }

	/**
	 * @see HttpServlet#service(HttpServletRequest request, HttpServletResponse response)
	 */
	protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		String content = "http://www.redbb.xyz/helloblog/test.do?id=a2975865-da2a-4111-ba1b-098568d6294a";
		EncodeHandler handler = new EncodeHandler();
		handler.encoderQRCoder(content, response);
	}

}
